{% extends "base.html" %}
{% load static %}
{% block module %}
<link rel="stylesheet" type="text/css" href="{% static '/css/statistics.css' %}">

{% endblock %}
{% block body %}
<div class="statistics_bg">
    <div class="content">

        {% if not statistics %}
            <div class="nulltag">
                <h1>欢迎使用自动化测试平台</h1>
            </div>
        {% endif %}

        {% for info in statistics %}
        <div class="projectModel">
            <h3>{{ info.projectName }}</h3>
            <span><label>接口用例数: </label><label><i class="cs">{{ info.interFaceNum }}</i></label></span>
            <span><label>接口用例执行情况: </label><label><i class="success">{{ info.inSuccessNum }}</i>/<i  class="fail">{{ info.inFail }}</i>/<i class="cs">{{ info.inExecute }}</i></label></span>
            <span><label>UI用例数: </label><label><i class="cs">{{ info.uiFaceNum }}</i></label></span>
            <span><label>UI用例执行情况: </label><label><i class="success">{{ info.uiSuccessNum }}</i>/<i  class="fail">{{ info.uiFail }}</i>/<i class="cs">{{ info.uiExecute }}</i></label></span>
        </div>
        {% endfor %}
    </div>
</div>
{% endblock %}